package com.dashboard.taichinh;

import java.util.ArrayList;

public class ThongKe {
	private  ArrayList<Integer> listDHCQ;
	private  ArrayList<Integer> listDTSDH;
	private  ArrayList<Integer> listOther;
	private ArrayList<Integer> listKCQ;
	private ArrayList<Integer> listQT;
	private  ArrayList<Integer> listSDH;
	//////////////////////////////////////
	private long canThuDHCQ;
	private long canThuDTSDH;
	private long canThuOther;
	private long canThuKCQ;
	private long canThuQT;
	private long canThuSDH;
	
	private long tamThuDHCQ;
	private long tamThuDTSDH;
	private long tamThuOther;
	private long tamThuKCQ;
	private long tamThuQT;
	private long tamThuSDH;
	
	private long thucThuDHCQ;
	private long thucThuDTSDH;
	private long thucThuOther;
	private long thucThuKCQ;
	private long thucThuQT;
	private long thucThuSDH;
	
	private long conLaiDHCQ;
	private long conLaiDTSDH;
	private long conLaiOther;
	private long conLaiKCQ;
	private long conLaiQT;
	private long conLaiSDH;
	//////////////////////////////////////
	private int soSVCanNopDHCQ;
	private int soSVChuaNopDHCQ;
	private int soSVNopTreDHCQ;
	
	private int soSVCanNopDTSDH;
	private int soSVChuaNopDTSDH;
	private int soSVNopTreDTSDH;
	
	private int soSVCanNopOther;
	private int soSVChuaNopOther;
	private int soSVNopTreOther;
	
	private int soSVCanNopKCQ;
	private int soSVChuaNopKCQ;
	private int soSVNopTreKCQ;
	
	private int soSVCanNopQT;
	private int soSVChuaNopQT;
	private int soSVNopTreQT;
	
	private int soSVCanNopSDH;
	private int soSVChuaNopSDH;
	private int soSVNopTreSDH;
	//////////////////////////////////////
	public ThongKe(){
		listDHCQ=new ArrayList<Integer>();
		listDHCQ.add(1);
		listDHCQ.add(29);
		listDHCQ.add(42);
		listDHCQ.add(109);
		listDHCQ.add(114);
		/////////////////////////////////////
		listDTSDH=new ArrayList<Integer>();
		//////////////////////////////////////
		listOther=new ArrayList<Integer>();
		listOther.add(6);
		listOther.add(7);
		listOther.add(8);
		
		//////////////////////////////////////
		listKCQ=new ArrayList<Integer>();
		listKCQ.add(34);
		listKCQ.add(40);
		listKCQ.add(41);
		listKCQ.add(43);
		listKCQ.add(44);
		//////////////////////////////////////
		listQT=new ArrayList<Integer>();
		listQT.add(30);
		listQT.add(31);
		/////////////////////////////////////
		listSDH=new ArrayList<Integer>();
		listSDH.add(110);
		listSDH.add(111);
		listSDH.add(112);
		listSDH.add(113);
		//////////////////////////////////////
		canThuDHCQ=(long) 0;
		canThuDTSDH=(long) 0;
		canThuOther=(long) 0;
		canThuKCQ=(long) 0;
		canThuQT=(long) 0;
		canThuSDH=(long) 0;
		
		tamThuDHCQ=(long) 0;
		tamThuDTSDH=(long) 0;
		tamThuOther=(long) 0;
		tamThuKCQ=(long) 0;
		tamThuQT=(long) 0;
		tamThuSDH=(long) 0;
		
		thucThuDHCQ=(long) 0;
		thucThuDTSDH=(long) 0;
		thucThuOther=(long) 0;
		thucThuKCQ=(long) 0;
		thucThuQT=(long) 0;
		thucThuSDH=(long) 0;
		
		conLaiDHCQ=(long) 0;
		conLaiDTSDH=(long) 0;
		conLaiOther=(long) 0;
		conLaiKCQ=(long) 0;
		conLaiQT=(long) 0;
		conLaiSDH=(long) 0;
		//////////////////////////////////////
		soSVCanNopDHCQ=0;
		soSVChuaNopDHCQ=0;
		soSVNopTreDHCQ=0;
		
		soSVCanNopDTSDH=0;
		soSVChuaNopDTSDH=0;
		soSVNopTreDTSDH=0;
		
		soSVCanNopOther=0;
		soSVChuaNopOther=0;
		soSVNopTreOther=0;
		
		soSVCanNopKCQ=0;
		soSVChuaNopKCQ=0;
		soSVNopTreKCQ=0;
		
		soSVCanNopQT=0;
		soSVChuaNopQT=0;
		soSVNopTreQT=0;
		
		soSVCanNopSDH=0;
		soSVChuaNopSDH=0;
		soSVNopTreSDH=0;
	}
	/////////////////////////////////////////////////
	
	public int getSoSVCanNopDHCQ() {
		return soSVCanNopDHCQ;
	}
	public long getCanThuDHCQ() {
		return canThuDHCQ;
	}



	public void setCanThuDHCQ(long canThuDHCQ) {
		this.canThuDHCQ = canThuDHCQ;
	}



	public long getCanThuDTSDH() {
		return canThuDTSDH;
	}



	public void setCanThuDTSDH(long canThuDTSDH) {
		this.canThuDTSDH = canThuDTSDH;
	}



	public long getCanThuOther() {
		return canThuOther;
	}



	public void setCanThuOther(long canThuOther) {
		this.canThuOther = canThuOther;
	}



	public long getCanThuKCQ() {
		return canThuKCQ;
	}



	public void setCanThuKCQ(long canThuKCQ) {
		this.canThuKCQ = canThuKCQ;
	}



	public long getCanThuQT() {
		return canThuQT;
	}



	public void setCanThuQT(long canThuQT) {
		this.canThuQT = canThuQT;
	}



	public long getCanThuSDH() {
		return canThuSDH;
	}



	public void setCanThuSDH(long canThuSDH) {
		this.canThuSDH = canThuSDH;
	}



	public long getTamThuDHCQ() {
		return tamThuDHCQ;
	}



	public void setTamThuDHCQ(long tamThuDHCQ) {
		this.tamThuDHCQ = tamThuDHCQ;
	}



	public long getTamThuDTSDH() {
		return tamThuDTSDH;
	}



	public void setTamThuDTSDH(long tamThuDTSDH) {
		this.tamThuDTSDH = tamThuDTSDH;
	}



	public long getTamThuOther() {
		return tamThuOther;
	}



	public void setTamThuOther(long tamThuOther) {
		this.tamThuOther = tamThuOther;
	}



	public long getTamThuKCQ() {
		return tamThuKCQ;
	}



	public void setTamThuKCQ(long tamThuKCQ) {
		this.tamThuKCQ = tamThuKCQ;
	}



	public long getTamThuQT() {
		return tamThuQT;
	}



	public void setTamThuQT(long tamThuQT) {
		this.tamThuQT = tamThuQT;
	}



	public long getTamThuSDH() {
		return tamThuSDH;
	}



	public void setTamThuSDH(long tamThuSDH) {
		this.tamThuSDH = tamThuSDH;
	}



	public long getThucThuDHCQ() {
		return thucThuDHCQ;
	}



	public void setThucThuDHCQ(long thucThuDHCQ) {
		this.thucThuDHCQ = thucThuDHCQ;
	}



	public long getThucThuDTSDH() {
		return thucThuDTSDH;
	}



	public void setThucThuDTSDH(long thucThuDTSDH) {
		this.thucThuDTSDH = thucThuDTSDH;
	}



	public long getThucThuOther() {
		return thucThuOther;
	}



	public void setThucThuOther(long thucThuOther) {
		this.thucThuOther = thucThuOther;
	}



	public long getThucThuKCQ() {
		return thucThuKCQ;
	}



	public void setThucThuKCQ(long thucThuKCQ) {
		this.thucThuKCQ = thucThuKCQ;
	}



	public long getThucThuQT() {
		return thucThuQT;
	}



	public void setThucThuQT(long thucThuQT) {
		this.thucThuQT = thucThuQT;
	}



	public long getThucThuSDH() {
		return thucThuSDH;
	}



	public void setThucThuSDH(long thucThuSDH) {
		this.thucThuSDH = thucThuSDH;
	}



	public long getConLaiDHCQ() {
		return conLaiDHCQ;
	}



	public void setConLaiDHCQ(long conLaiDHCQ) {
		this.conLaiDHCQ = conLaiDHCQ;
	}



	public long getConLaiDTSDH() {
		return conLaiDTSDH;
	}



	public void setConLaiDTSDH(long conLaiDTSDH) {
		this.conLaiDTSDH = conLaiDTSDH;
	}



	public long getConLaiOther() {
		return conLaiOther;
	}



	public void setConLaiOther(long conLaiOther) {
		this.conLaiOther = conLaiOther;
	}



	public long getConLaiKCQ() {
		return conLaiKCQ;
	}



	public void setConLaiKCQ(long conLaiKCQ) {
		this.conLaiKCQ = conLaiKCQ;
	}



	public long getConLaiQT() {
		return conLaiQT;
	}



	public void setConLaiQT(long conLaiQT) {
		this.conLaiQT = conLaiQT;
	}



	public long getConLaiSDH() {
		return conLaiSDH;
	}



	public void setConLaiSDH(long conLaiSDH) {
		this.conLaiSDH = conLaiSDH;
	}



	public void setSoSVCanNopDHCQ(int soSVCanNopDHCQ) {
		this.soSVCanNopDHCQ = soSVCanNopDHCQ;
	}
	public int getSoSVChuaNopDHCQ() {
		return soSVChuaNopDHCQ;
	}
	public void setSoSVChuaNopDHCQ(int soSVChuaNopDHCQ) {
		this.soSVChuaNopDHCQ = soSVChuaNopDHCQ;
	}
	public int getSoSVCanNopDTSDH() {
		return soSVCanNopDTSDH;
	}
	public void setSoSVCanNopDTSDH(int soSVCanNopDTSDH) {
		this.soSVCanNopDTSDH = soSVCanNopDTSDH;
	}
	public int getSoSVChuaNopDTSDH() {
		return soSVChuaNopDTSDH;
	}
	public void setSoSVChuaNopDTSDH(int soSVChuaNopDTSDH) {
		this.soSVChuaNopDTSDH = soSVChuaNopDTSDH;
	}
	public int getSoSVCanNopOther() {
		return soSVCanNopOther;
	}
	public void setSoSVCanNopOther(int soSVCanNopOther) {
		this.soSVCanNopOther = soSVCanNopOther;
	}
	public int getSoSVChuaNopOther() {
		return soSVChuaNopOther;
	}
	public void setSoSVChuaNopOther(int soSVChuaNopOther) {
		this.soSVChuaNopOther = soSVChuaNopOther;
	}
	public int getSoSVCanNopKCQ() {
		return soSVCanNopKCQ;
	}
	public void setSoSVCanNopKCQ(int soSVCanNopKCQ) {
		this.soSVCanNopKCQ = soSVCanNopKCQ;
	}
	public int getSoSVChuaNopKCQ() {
		return soSVChuaNopKCQ;
	}
	public void setSoSVChuaNopKCQ(int soSVChuaNopKCQ) {
		this.soSVChuaNopKCQ = soSVChuaNopKCQ;
	}
	public int getSoSVCanNopQT() {
		return soSVCanNopQT;
	}
	public void setSoSVCanNopQT(int soSVCanNopQT) {
		this.soSVCanNopQT = soSVCanNopQT;
	}
	public int getSoSVChuaNopQT() {
		return soSVChuaNopQT;
	}
	public void setSoSVChuaNopQT(int soSVChuaNopQT) {
		this.soSVChuaNopQT = soSVChuaNopQT;
	}
	public int getSoSVCanNopSDH() {
		return soSVCanNopSDH;
	}
	public void setSoSVCanNopSDH(int soSVCanNopSDH) {
		this.soSVCanNopSDH = soSVCanNopSDH;
	}
	public int getSoSVChuaNopSDH() {
		return soSVChuaNopSDH;
	}
	public void setSoSVChuaNopSDH(int soSVChuaNopSDH) {
		this.soSVChuaNopSDH = soSVChuaNopSDH;
	}
	
	public int getSoSVNopTreDHCQ() {
		return soSVNopTreDHCQ;
	}

	public void setSoSVNopTreDHCQ(int soSVNopTreDHCQ) {
		this.soSVNopTreDHCQ = soSVNopTreDHCQ;
	}

	public int getSoSVNopTreDTSDH() {
		return soSVNopTreDTSDH;
	}

	public void setSoSVNopTreDTSDH(int soSVNopTreDTSDH) {
		this.soSVNopTreDTSDH = soSVNopTreDTSDH;
	}

	public int getSoSVNopTreOther() {
		return soSVNopTreOther;
	}

	public void setSoSVNopTreOther(int soSVNopTreOther) {
		this.soSVNopTreOther = soSVNopTreOther;
	}

	public int getSoSVNopTreKCQ() {
		return soSVNopTreKCQ;
	}

	public void setSoSVNopTreKCQ(int soSVNopTreKCQ) {
		this.soSVNopTreKCQ = soSVNopTreKCQ;
	}

	public int getSoSVNopTreQT() {
		return soSVNopTreQT;
	}

	public void setSoSVNopTreQT(int soSVNopTreQT) {
		this.soSVNopTreQT = soSVNopTreQT;
	}

	public int getSoSVNopTreSDH() {
		return soSVNopTreSDH;
	}

	public void setSoSVNopTreSDH(int soSVNopTreSDH) {
		this.soSVNopTreSDH = soSVNopTreSDH;
	}

	//////////////////////////////////////////////////////////////////////////////
	public void setStatistic(int id, long canthu, long tamthu, long thucthu, long conlai, int soSVCanNop, int soSVChuaNop){
		if(listDHCQ.contains(id)){
			canThuDHCQ=canThuDHCQ+canthu;
			tamThuDHCQ=tamThuDHCQ+tamthu;
			thucThuDHCQ=thucThuDHCQ+thucthu;
			conLaiDHCQ=conLaiDHCQ+conlai;
			soSVChuaNopDHCQ=soSVChuaNopDHCQ+soSVChuaNop;
			soSVCanNopDHCQ=soSVCanNopDHCQ+soSVCanNop;
		}
		else if(listDTSDH.contains(id)){
			canThuDTSDH=canThuDTSDH+canthu;
			tamThuDTSDH=tamThuDTSDH+tamthu;
			thucThuDTSDH=thucThuDTSDH+thucthu;
			conLaiDTSDH=conLaiDTSDH+conlai;
			
			soSVChuaNopDTSDH=soSVChuaNopDTSDH+soSVChuaNop;
			soSVCanNopDTSDH=soSVCanNopDTSDH+soSVCanNop;
		}
		else if(listKCQ.contains(id)){
			canThuKCQ=canThuKCQ+canthu;
			tamThuKCQ=tamThuKCQ+tamthu;
			thucThuKCQ=thucThuKCQ+thucthu;
			conLaiKCQ=conLaiKCQ+conlai;
			
			soSVChuaNopKCQ=soSVChuaNopKCQ+soSVChuaNop;
			soSVCanNopKCQ=soSVCanNopKCQ+soSVCanNop;
		}
		else if(listQT.contains(id)){
			canThuQT=canThuQT+canthu;
			tamThuQT=tamThuQT+tamthu;
			thucThuQT=thucThuQT+thucthu;
			conLaiQT=conLaiQT+conlai;
			
			soSVChuaNopQT=soSVChuaNopQT+soSVChuaNop;
			soSVCanNopQT=soSVCanNopQT+soSVCanNop;
		}
		else if(listSDH.contains(id)){
			canThuSDH=canThuSDH+canthu;
			tamThuSDH=tamThuSDH+tamthu;
			thucThuSDH=thucThuSDH+thucthu;
			conLaiSDH=conLaiSDH+conlai;
			
			soSVChuaNopSDH=soSVChuaNopSDH+soSVChuaNop;
			soSVCanNopSDH=soSVCanNopSDH+soSVCanNop;
		}
		else if(listOther.contains(id)){
			canThuOther=canThuOther+canthu;
			tamThuOther=tamThuOther+tamthu;
			thucThuOther=thucThuOther+thucthu;
			conLaiOther=conLaiOther+conlai;
			
			soSVChuaNopOther=soSVChuaNopOther+soSVChuaNop;
			soSVCanNopOther=soSVCanNopOther+soSVCanNop;
		}
	}
	public void setSoSVNopTre(int id, int soSV){
		if(listDHCQ.contains(id)){
			soSVNopTreDHCQ=soSVNopTreDHCQ+soSV;
			
		}
		else if(listDTSDH.contains(id)){
			soSVNopTreDTSDH=soSVNopTreDTSDH+soSV;
		}
		else if(listKCQ.contains(id)){
			soSVNopTreKCQ=soSVNopTreKCQ+soSV;
		}
		else if(listQT.contains(id)){
			soSVNopTreQT=soSVNopTreQT+soSV;
		}
		else if(listSDH.contains(id)){
			soSVNopTreSDH=soSVNopTreSDH+soSV;
		}
		else if(listOther.contains(id)){
			soSVNopTreOther=soSVNopTreOther+soSV;
		}
	}
	////////////////////////////////////////////////////////////////////////////
}
